<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    /*字体声明*/
    @font-face {
        font-family: 'icomoon';
        src: url('fonts/icomoon.eot?khmgph');
        src: url('fonts/icomoon.eot?khmgph#iefix') format('embedded-opentype'),
            url('fonts/icomoon.ttf?khmgph') format('truetype'),
            url('fonts/icomoon.woff?khmgph') format('woff'),
            url('fonts/icomoon.svg?khmgph#icomoon') format('svg');
        font-weight: normal;
        font-style: normal;
        font-display: block;
    }

    span {
        font-family: 'icomoon';
    }
</style>

<body>
    <span></span>
    <span></span>
    <script>
        //字体图标 是图标 可以随意更换大小 颜色(本质是字体)
        //轻量 灵活 兼容 不能替换精灵图(复杂的图片)
        //1. 字体文件放在html文件同级
        //2. 要给span 指定 字体样式
    </script>
</body>

</html>